# coding: utf8

# Globals
fontfamily = 'arimo'
fontface = 'ArimoRegular'
plugin_name = 'plugin_font_' + fontfamily
configuration_file_font_plugin_global = plugin_name + '_installed'

# if not in globals then
if configuration_file_font_plugin_global not in globals():
    _ensure_new_font(configuration_file_font_plugin_global, plugin_name)

# add an about section here
response.menu_plugin_font_arimo= [
  ('Arimo', False, URL('plugin_font_arimo', 'index'), [])
]

if not response.menu_plugin_font_arimo_font_choice:
    response.menu_plugin_font_arimo_font_choice = []

if session._fontface != 'ArimoRegular':
    response.menu_plugin_font_arimo_font_choice += [
        ('ArimoRegular', False, URL(r=request,vars=dict(_fontfamily='arimo', _fontface='ArimoRegular')),
    )]
    
if session._fontface != 'ArimoItalic':
    response.menu_plugin_font_arimo_font_choice += [
        ('ArimoItalic', False, URL(r=request,vars=dict(_fontfamily='arimo', _fontface='ArimoItalic')),
    )]

if session._fontface != 'ArimoBold':
    response.menu_plugin_font_arimo_font_choice += [
        ('ArimoBold', False, URL(r=request,vars=dict(_fontfamily='arimo', _fontface='ArimoBold')),
    )]
    
if session._fontface != 'ArimoBoldItalic':
    response.menu_plugin_font_arimo_font_choice += [
        ('ArimoBoldItalic', False, URL(r=request,vars=dict(_fontfamily='arimo', _fontface='ArimoBoldItalic')),
    )]

# response.menu += response.menu_plugin_font_arimo
# response.menu += response.menu_plugin_font_arimo_font_choice
